package com.example.mydemo.mydemo1;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class Controller {
    public static void main(String[] args) {
        ApplicationContext applicationContext= SpringApplication.run(Controller.class, args);
        Service service= applicationContext.getBean(Service.class);
        service.startRun();
    }

}
